// components/nav-bar/nav-bar.js
const app = getApp()
Component({
  properties: {
    title:{
      type: String,
      value: "导航标题"
    }
  },
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },

  data: {
    statusHeight: 20
  },
  lifetimes: {
    attached() {
      this.setData({ statusHeight: app.globalData.statusHeight })
    }
  },
  methods:{
    onClickPrevious(){
      this.triggerEvent("previousClick")
    }
  }
})
